#pragma once
#include "AgentState.h"

class FollowWayPointsState :
	public AgentState
{
private:
	vector <Vector2> _waypoints;
	Vector2 last_pos;
	Vector2 alternate_waypoint;
	int cur_waypoint;

	void setNextWayPoint();
	bool _done;
public:
	FollowWayPointsState(vector <Vector2> & waypoints);
	~FollowWayPointsState(void);

	Command GetCommand(GridAgent* agent);
	bool done();
	bool complete();
};

